home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / zsprfs.z / zsprfs
Encoding:
Text File  |  2002-10-03  |  5.8 KB  |  199 lines

  1.  
  2.  
  3.  
  4. ZZZZSSSSPPPPRRRRFFFFSSSS((((3333SSSS))))                                                          ZZZZSSSSPPPPRRRRFFFFSSSS((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ZSPRFS - improve the computed solution to a system of linear equations
  10.      when the coefficient matrix is symmetric indefinite and packed, and
  11.      provides error bounds and backward error estimates for the solution
  12.  
  13. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      SUBROUTINE ZSPRFS( UPLO, N, NRHS, AP, AFP, IPIV, B, LDB, X, LDX, FERR,
  15.                         BERR, WORK, RWORK, INFO )
  16.  
  17.          CHARACTER      UPLO
  18.  
  19.          INTEGER        INFO, LDB, LDX, N, NRHS
  20.  
  21.          INTEGER        IPIV( * )
  22.  
  23.          DOUBLE         PRECISION BERR( * ), FERR( * ), RWORK( * )
  24.  
  25.          COMPLEX*16     AFP( * ), AP( * ), B( LDB, * ), WORK( * ), X( LDX, * )
  26.  
  27. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  28.      These routines are part of the SCSL Scientific Library and can be loaded
  29.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  30.      directs the linker to use the multi-processor version of the library.
  31.  
  32.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  33.      4 bytes (32 bits). Another version of SCSL is available in which integers
  34.      are 8 bytes (64 bits).  This version allows the user access to larger
  35.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  36.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  37.      only one of the two versions; 4-byte integer and 8-byte integer library
  38.      calls cannot be mixed.
  39.  
  40. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  41.      ZSPRFS improves the computed solution to a system of linear equations
  42.      when the coefficient matrix is symmetric indefinite and packed, and
  43.      provides error bounds and backward error estimates for the solution.
  44.  
  45. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  46.      UPLO    (input) CHARACTER*1
  47.              = 'U':  Upper triangle of A is stored;
  48.              = 'L':  Lower triangle of A is stored.
  49.  
  50.      N       (input) INTEGER
  51.              The order of the matrix A.  N >= 0.
  52.  
  53.      NRHS    (input) INTEGER
  54.              The number of right hand sides, i.e., the number of columns of
  55.              the matrices B and X.  NRHS >= 0.
  56.  
  57.      AP      (input) COMPLEX*16 array, dimension (N*(N+1)/2)
  58.              The upper or lower triangle of the symmetric matrix A, packed
  59.              columnwise in a linear array.  The j-th column of A is stored in
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ZZZZSSSSPPPPRRRRFFFFSSSS((((3333SSSS))))                                                          ZZZZSSSSPPPPRRRRFFFFSSSS((((3333SSSS))))
  71.  
  72.  
  73.  
  74.              the array AP as follows:  if UPLO = 'U', AP(i + (j-1)*j/2) =
  75.              A(i,j) for 1<=i<=j; if UPLO = 'L', AP(i + (j-1)*(2*n-j)/2) =
  76.              A(i,j) for j<=i<=n.
  77.  
  78.      AFP     (input) COMPLEX*16 array, dimension (N*(N+1)/2)
  79.              The factored form of the matrix A.  AFP contains the block
  80.              diagonal matrix D and the multipliers used to obtain the factor U
  81.              or L from the factorization A = U*D*U**T or A = L*D*L**T as
  82.              computed by ZSPTRF, stored as a packed triangular matrix.
  83.  
  84.      IPIV    (input) INTEGER array, dimension (N)
  85.              Details of the interchanges and the block structure of D as
  86.              determined by ZSPTRF.
  87.  
  88.      B       (input) COMPLEX*16 array, dimension (LDB,NRHS)
  89.              The right hand side matrix B.
  90.  
  91.      LDB     (input) INTEGER
  92.              The leading dimension of the array B.  LDB >= max(1,N).
  93.  
  94.      X       (input/output) COMPLEX*16 array, dimension (LDX,NRHS)
  95.              On entry, the solution matrix X, as computed by ZSPTRS.  On exit,
  96.              the improved solution matrix X.
  97.  
  98.      LDX     (input) INTEGER
  99.              The leading dimension of the array X.  LDX >= max(1,N).
  100.  
  101.      FERR    (output) DOUBLE PRECISION array, dimension (NRHS)
  102.              The estimated forward error bound for each solution vector X(j)
  103.              (the j-th column of the solution matrix X).  If XTRUE is the true
  104.              solution corresponding to X(j), FERR(j) is an estimated upper
  105.              bound for the magnitude of the largest element in (X(j) - XTRUE)
  106.              divided by the magnitude of the largest element in X(j).  The
  107.              estimate is as reliable as the estimate for RCOND, and is almost
  108.              always a slight overestimate of the true error.
  109.  
  110.      BERR    (output) DOUBLE PRECISION array, dimension (NRHS)
  111.              The componentwise relative backward error of each solution vector
  112.              X(j) (i.e., the smallest relative change in any element of A or B
  113.              that makes X(j) an exact solution).
  114.  
  115.      WORK    (workspace) COMPLEX*16 array, dimension (2*N)
  116.  
  117.      RWORK   (workspace) DOUBLE PRECISION array, dimension (N)
  118.  
  119.      INFO    (output) INTEGER
  120.              = 0:  successful exit
  121.              < 0:  if INFO = -i, the i-th argument had an illegal value
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ZZZZSSSSPPPPRRRRFFFFSSSS((((3333SSSS))))                                                          ZZZZSSSSPPPPRRRRFFFFSSSS((((3333SSSS))))
  137.  
  138.  
  139.  
  140. PARAMETERS
  141.      ITMAX is the maximum number of steps of iterative refinement.
  142.  
  143. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  144.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  145.  
  146.      This man page is available only online.
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.